<?php

namespace Lib;

final class Consts {
    # common
    const QUEUE            = 'queue:%s:lists';
    const SPIDER_STATIS    = 'spider:statis';
    const STATIS_COUNT     = 'statis:count';
    const HASH_USER_INFO   = 'user:info';
    const HASH_DEVICE_INFO = 'device:info';

    const EXCHANGE_RATE = 100;
    const ADMIN_NAME    = 'admin';

    const PRODUCT_NORMAL   = 1;
    const PRODUCT_DISABLED = 2;
    const PRODUCT_DELETE   = 3;

    const ORDER_WAIT    = 1;
    const ORDER_PAY     = 2;
    const ORDER_SUCCESS = 3;
    const ORDER_FAIL    = 4;
    const ORDER_CLOSE   = 5;

    const IOS_PRODUCT_ID = 'com.zhibo8.client81136870.';

    # api
    const ORDERPAY_TYPE_ALI      = 1;
    const ORDERPAY_TYPE_APPSTORE = 2;

    const FINANCE_LOG_FLOW_IN       = 1;
    const FINANCE_LOG_FLOW_OUT      = 2;
    const FINANCE_LOG_TYPE_RECHARGE = 1;
    const FINANCE_LOG_TYPE_REWARD   = 2;

    const REWARD_RECORD_ANCHOR = 1;

    const ANCHOR_NORMAL   = 1;
    const ANCHOR_DISABLED = 2;
    const ANCHOR_DELETE   = 3;

    const USER_NORMAL   = 1;
    const USER_DISABLED = 2;
    const USER_DELETE   = 3;

    # admin
    const PRIVILEGE_NORMAL = 1;
    const PRIVILEGE_DELETE = 2;

    const ROLE_NORMAL = 1;
    const ROLE_DELETE = 2;

    const MENU_NORMAL = 1;
    const Menu_DELETE = 2;

    const RECHARGE_NORMAL   = 1;
    const RECHARGE_DISABLED = 2;
    const RECHARGE_DELETE   = 3;

    const REWARD_NORMAL   = 1;
    const REWARD_DISABLED = 2;
    const REWARD_DELETE   = 3;

    const EXPIRE_5MINU  = 300;
    const EXPIRE_15MINU = 900;
    const EXPIRE_1HOUR  = 3600;
    const EXPIRE_2HOUR  = 7200;
    const EXPIRE_12HOUR = 43200;

    const EXPIRE_1DAY  = 86400;
    const EXPIRE_2DAY  = 172800;
    const EXPIRE_7DAY  = 604800;
    const EXPIRE_30DAY = 2592000;

    const LABEL_NORMAL = 1;
    const LABEL_DELETE = 2;

    const KEYWORD_NORMAL   = 1;
    const KEYWORD_DISABLED = 2;

    const TOKEN_NORMAL   = 1;
    const TOKEN_DISABLED = 2;
    const TOKEN_DELETE   = 3;

    // 短信验证码
    const MOBILE_CODE = '%s';


}
